package com.eastmoney.emis.edda.infrastructure.actuate;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.time.Duration;

/**
 * @description: Description
 * @projectName: EDDA-HSBC
 * @package: com.eastmoney.emis.edda.infrastructure.actuate
 * @author: 汪程程
 * @date: 2023/7/15 1:37 PM
 * @version: 1.0
 */
@ConfigurationProperties("edda.pgp.health")
public class PGPCertificateHealthIndicatorProperties {

    private Duration warningBeforeExpired;
    private Duration warningPeriod= Duration.ofHours(2);

    public Duration getWarningBeforeExpired() {
        return warningBeforeExpired;
    }

    public void setWarningBeforeExpired(Duration warningBeforeExpired) {
        this.warningBeforeExpired = warningBeforeExpired;
    }

    public Duration getWarningPeriod() {
        return warningPeriod;
    }

    public void setWarningPeriod(Duration warningPeriod) {
        this.warningPeriod = warningPeriod;
    }
}
